package top.szhome.system.entity;

import com.baomidou.mybatisplus.annotation.OrderBy;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import top.szhome.framework.starter.db.support.BaseEntity;

/**
 * 部门实体对象
 *
 * @author 唐加利
 * @date 2023/07/31
 **/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_dept")
public class Dept extends BaseEntity {

    /**
     * 序列号
     */
    private static final long serialVersionUID = 1L;

    /**
     * 父部门id
     */
    private Long parentId;

    /**
     * 祖级列表
     */
    private String ancestors;

    /**
     * 部门名称
     */
    @OrderBy(asc = true)
    private String name;

    /**
     * 机构类型
     */
    private String type;

    /**
     * 负责人
     */
    private Long ownerId;

    /**
     * 备注
     */
    private String remark;

    /**
     * 状态
     */
    private String status;

    /**
     * 显示顺序
     */
    @OrderBy(asc = true, sort = 0)
    private Integer sort;

}
